<div class='sidebar sidebar-fixed' id="sidebar">

    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'fixed');
            ace.settings.check('sidebar', 'collapsed');
        } catch (e) {
        }
    </script>

    {% if entity.entity_type == 'User' %}
        {% set user=entity %}
        {% include 'auth/view/user_sidebar.jinja2' %}
    {% elif entity.entity_type == 'Asset'or entity.entity_type == 'Shot'or entity.entity_type == 'Sequence'or entity.entity_type == 'Task'%}
        {% set task=entity %}
        {% include 'task/view/task_sidebar.jinja2' %}
    {% else %}
        {% if entity.entity_type =='Project' %}
            {% set project=entity %}
        {% endif %}
        {% include '%(entity_type)s/view/%(entity_type)s_sidebar.jinja2' % ({'entity_type': entity.entity_type.lower() }) %}
    {% endif %}

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left"
           data-icon1="icon-double-angle-left"
           data-icon2="icon-double-angle-right"></i>
    </div>

    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'collapsed')
        } catch (e) {
        }
    </script>

</div>
